package com.team7.system.service;

import com.team7.common.entity.Permission;
import com.team7.common.vo.CommonResult;
import com.team7.common.vo.PermissionVo;
import com.team7.common.vo.RolePermissionVo;

/**
 * @program: team7-Object
 * @description:
 * @author: 杨海涛
 * @create: 2021-10-18 20:48
 **/
public interface PermissionService {
    CommonResult getAllPermission();

    CommonResult findAllPermissionById();

    CommonResult findPermissionByRoleId(String roleId);

    CommonResult confirmFenPermission(RolePermissionVo rolePermissionVo);

    CommonResult findAllByPage(Integer page, Integer limit, PermissionVo permissionVo);

    CommonResult deleteById(PermissionVo permissionVo);

    CommonResult insert(Permission permission);

    CommonResult findById(String id);

    CommonResult update(Permission permission);
}
